﻿using System;
using System.Linq;
using System.Drawing;

namespace ForumsBrowser.BusinessObjects
{
    public class User
    {
        public Guid Id { get; set; }
        public string DisplayName { get; set; }
        public bool MVP { get; set; }
        public bool Partner { get; set; }
        public bool Microsoft { get; set; }
        public string Url { get; set; }
        public DateTime LastActive { get; set; }
        public int Answers { get; set; }
        public int Stars { get; set; }
        public bool IsInappropriate { get; set; }
        public string ThreadsUrl { get; set; }
        public int Points { get; set; }
        public int Posts { get; set; }
        public string Image { get; set; }

        public double Ratio
        {
            get
            {
                return ((double)Answers / (double)Posts) * 100d;
            }
        }

        public override string ToString()
        {
            return DisplayName;
        }
    }
}
